package cn.e4j.modular.api.service;

import cn.e4j.core.dto.impl.Dto;
import cn.e4j.modular.api.mapper.BfjlspMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * Created by wenchuan.li on 2018/6/14.
 */

@Service
public class BfjlspService {

    @Autowired
    BfjlspMapper bfjlspMapper;

    /**
     * 获取商机主题列表
     * @param inDto
     * @return
     */
    @Transactional(readOnly = true)
    public List<Dto> getBfjlspList(Page<Object>page,Dto inDto) {
        return bfjlspMapper.getBfjlspListPage(page,inDto);

    }

    @Transactional(readOnly = true)
    public List<Dto> getBfjlspInfo(Dto inDto) {
        return bfjlspMapper.getBfjlspInfo(inDto);

    }

    @Transactional(readOnly = true)
    public List<Dto> getGwbfList(Page<Object>page,Dto inDto) {
        return bfjlspMapper.getGwbfList(page,inDto);

    }
}
